<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	
<%@ include file="../../../common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<sfa:mainTitle></sfa:mainTitle>
		<%@ include file="../../../common/meta.jsp"%>
		
</head>
	<body id="master">
		<sfa:mainHeader></sfa:mainHeader>
		
		<div class="webpart3 contentarea">
			<div class="webpart-head">
				<div class="webpart-head-item">
					当前统计
					<div class="tools-btn" style="margin-right: 4px; margin-bottom: 0px;">
						<input type="button" class="linkbtn2" value="返回" id="return" 
					    onclick = "location.href='${path}/team/attendance/index/saleCheckWorkon';">
				    </div>
				</div>
						
			</div>		
		<div class="webpart-main">
	    	<div class="webpart-main-item" style="padding-top: 12px;">  
	    		 <div class="search">
					<table cellspacing="0" cellpadding="0" class="trStyleTable dg_borderstyle"
				 	style="margin-top: 15px; width: 100%;text-align: center;">
						<tbody>
							<tr class="tabheader">
	
								<th>
									 考勤类型 
								</th>
								<th>
									 层级 
								</th>
								<th>
									 起始时间
								</th>
								<th>
									 结束时间 
								</th>
								<th>
									 迟到 
								</th>
								<th>
									 请假 
								</th>
								<th>
									 准时 
								</th>
								<th>
									 未考勤 
								</th>
								<th>
									 考勤率 
								</th>
							</tr>
	
							<c:forEach items="${list}" var="temp">
								<tr class="gray datarow" id="${mainid}">
									<td>
										<div>
											<sfa:dic showType="value" code="${temp.checkItem}"></sfa:dic>
										</div>
									</td>
									<td>
										<div>
											<sfa:dic showType="value" code="AGENTLEVELCODE_${temp.agentLevel}"></sfa:dic>
										</div>
									</td>
									<td>
										<div>
											<fmt:formatDate value="${temp.checkStartTime}" pattern="yyyy-MM-dd HH:mm"/>									
										</div>
									</td>
									<td>
										<div>	
											<fmt:formatDate value="${temp.checkEndTime}" pattern="yyyy-MM-dd HH:mm"/>	
										</div>
									</td>
									<td>
										<div>
											<a href="${path}/team/attendance/index/detail1?mainid=${mainid}
											&checkstatus=CHECKSTATUS_2&level=${temp.agentLevel}">${temp.beLate}</a>
										</div>
									</td>
									<td>
										<span>
										<a href="${path}/team/attendance/index/detail1?mainid=${mainid}
											&checkstatus=CHECKSTATUS_3&level=${temp.agentLevel}">${temp.leave}</a>	
										</span>
									</td>
									<td>
										<span>
											${temp.onTime}
										</span>
									</td>
									<td>
										<span><a href="${path}/team/attendance/index/detail1?mainid=${mainid}
											&checkstatus=CHECKSTATUS_4&level=${temp.agentLevel}">
											${temp.noCheckWork}
										</a></span>
									</td>
									<td>
										<span>
											${temp.attendance}%
										</span>
									</td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
				</div>
			</div>
		</div>
			<div class="webpart-foot">
				<div class="webpart-foot-item">
				</div>
			</div>	
	</div>
	<sfa:mainFooter></sfa:mainFooter>
  </body>
</html>
